<?php
/**
 * App for managing contacts
 * 
 * Template for contact searching
 * 
 * @category Abovo
 * 
 * @package Abovo_App_Crm
 * 
 * @subpackage Abovo_App_Crm_Contacts
 * 
 * @license http://opensource.org/licenses/gpl-license.php GPL
 * 
 * @author Antti Holvikari <anttih@gmail.com>
 */
?>
<table class="list">
    <tr>
        <th>
            <?php echo Solar::$locale->fetch('Abovo_Model_Contacts', 'LABEL_NAME') ?>
        </th>
        <th>
            <?php echo Solar::$locale->fetch('Abovo_Model_Company', 'LABEL_NAME') ?>
        </th>
        <th>
            <?php echo Solar::$locale->fetch('Abovo_Model_Contacts', 'LABEL_CITY') ?>
        </th>
        <th>
            <?php echo Solar::$locale->fetch('Abovo_Model_Contacts', 'LABEL_EMAIL') ?>
        </th>
    </tr>
    <?php foreach ($this->contacts as $contact): ?>
        <tr>
            <td><a href="<?php echo $this->action('crm/contacts/show/' . $contact->id) ?>">
                <?php echo $this->escape($contact->firstname . ' ' . $contact->lastname) ?></a>
            </td>
            <td><?php echo $this->escape($contact->company) ?></td>
            <td><?php echo $this->escape($contact->city) ?></td>
            <td><?php echo $this->escape($contact->email) ?></td>
            
        </tr>
    <?php endforeach; ?>
</table>